//
//  AilaDevice.h
//  Aila
//
//  Created by shan on 24-12-11.
//  Copyright (c) 2024年 YiPai. All rights reserved.
//
#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, AilaEventState) {
    AilaEventStateNone = 0,
    AilaEventStateDisconnected,
    AilaEventStateConnecting,
    AilaEventStateConnected,
    AilaEventStateSuccess,
    AilaEventStateFailed
};

@protocol AilaDeviceDelegate<NSObject>

@optional
-(void)ailiDeviceConnectState:(AilaEventState)state;
-(void)ailaDeviceConfigWifiState:(AilaEventState)state;

@end


@interface AilaDevice : NSObject{
    
}

@property (nonatomic,assign) id <AilaDeviceDelegate> delegate;


-(void)start;
// 获取已连接设备列表(AilaPeripheral 数组)
-(NSMutableArray *)getAilaConnectedDevices;
-(void)configWifi:(NSString *)ssid password:(NSString *)psw macAddr:(NSString *)mac;

+ (id) sharedInstance;

@end
